﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using VideoClub.Business;
using VideoClub.Business.Consultas;

namespace VideoClub.UI.Reportes
{
    public partial class FrmReporte1 : Form
    {
        public FrmReporte1()
        {
            InitializeComponent();
        }

        private void Consultar_Click(object sender, EventArgs e)
        {
            String letra1, letra2, genero;
            letra1 = txtLetra1.Text;
            letra2 = txtLetra2.Text;
            genero = cboGenero.Text;
            dgvConsulta1.DataSource=ConsultasBO.ObtenerTodosLosDatosConsulta1(letra1,letra2,genero);

        }

        private void FrmReporte1_Load(object sender, EventArgs e)
        {
            cboGenero.DataSource = DatosComunesBO.ObtenerTodosLosGeneros();
            cboGenero.DisplayMember = "pDescripcion";
            cboGenero.ValueMember = "pidGenero";
        }

    }
}
